package com.javacoo.junit.generator.api.plugin;

import java.io.IOException;

import com.javacoo.junit.generator.env.ContextEnvment;
import com.javacoo.junit.generator.exception.InvalidConfigurationException;
import com.javacoo.junit.generator.exception.XMLParserException;
import com.javacoo.xkernel.spi.Spi;

/**
 * 生成器插件
 * <li></li>
 *
 * @author: duanyong@jccfc.com
 * @since: 2021/1/28 13:48
 */
@Spi("default")
public interface GeneratorPlugin {
    /**
     * 初始化
     * <li></li>
     * @author duanyong@jccfc.com
     * @date 2021/1/28 15:21
     * @param contextEnvment:上下文环境对象
     */
    GeneratorPlugin init(ContextEnvment contextEnvment) throws IOException, XMLParserException, InvalidConfigurationException;
    /**
     * 执行生成
     * <li></li>
     * @author duanyong@jccfc.com
     * @date 2021/1/28 14:41
     * @return: void
     */
    void generate();


}
